import java.io.*;
import java.util.*;
import java.text.DecimalFormat;

/*******************************************************************
 * public void setFileName(String inFileName)
 * public Vector getRecord () 
 * public void loadRecordFile () 
 * public static void main( String args[] )
 *
 *******************************************************************/

public  class SortingRecord  {

    private String fileName;
    private RandomAccessFile file;

    final   Vector v  = new Vector( 1 );

    public void setFileName(String inFileName) {
	fileName = inFileName; 
    }

    public Vector getRecord () {
	return (v);
    }


    public void loadRecordFile () 
    {
        File ff = new File ("ScheduleDTest.txt");


       if ( ff.exists() ) {
	   System.out.println("File:"+ff.getName()+" found!");
       }
       else {
	   System.out.println("File Not found!");
	   System.exit( 1 );
       }

       try { 
	  String text      = null;
	  String srecord[] = null;          
	  String arecord[][] = null;

	  file = new RandomAccessFile( ff, "r" );

	  while(( text = (String)file.readLine() ) != null ) {

	      StringTokenizer tokens = new StringTokenizer(text);
	      int i=0, j=0;

	      while (tokens.hasMoreTokens()) {
		      srecord[i] = tokens.nextToken();
		      arecord[j][i] = srecord[i];
		      System.out.println("srecord=:"+srecord[i]);
	      }
	      j++;
	      System.out.println("srecord=:"+srecord[j]);
	  }
      }
      catch ( IOException e ) {
	  System.exit( 1 );
      }
    }

    public static void main( String args[] )
    {
	SortingRecord sr  = new SortingRecord();
	sr.loadRecordFile (); 
   }   
}







